Fix check for required options

The check for the required options in connection.rb was checking that the option key exists instead of checking that the option value is set.