Fixed the wrong endpoint value check when no endpoint is set in config.
Merge pull request #466 from djlemmings/master

Fixed the wrong endpoint value check when no endpoint is set in config.