Fixed endpoint is undefined in sandbox when custom_endpoint is disabled
Merge pull request #471 from yoshz/bugfix/undefined-endpoint

Fixed endpoint is undefined in sandbox when custom_endpoint is disabled