Fix ruby's no_verify_ssl option
Fix some nil checking before type assertions, fixes #14