Fix #284 by catching the exception in code().
Merge pull request #296 from wordpress-mobile/issue-284

Fix #284 (NPE while adding a site on SSL with errors in the SSL certificate)