Fixed issue in WebAPI JS-Controller: When no params were given, the API added ?{} to the URL