IMPORTANT BUGFIX: Avoid random crashes in findCertificates. (This also fixes bug...