Fix small bug in views.get_api_key()

Make sure we always return a proper HTTP response object