Fix #4089 - undefined method `downcase' for nil:NilClass

This fixes a undefined method 'downcase' bug when the SMBPass datastore option is unset by the user.

Please see #4089 for verification steps.