Fix empty response on invalid action in Users API handler