Prevent crash when trying non existent endpoint