Fixed check for invalid URL POST requests.