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.
Fixed endpoint is undefined in sandbox when custom_endpoint is disabled