Why avoid this at all cost? How high is the chance that this would happen? And if it happens, it is good, to have this exception, because as you said it is unexpected behavior, which we should like to get informed about. 

I really do not see why to write any line of code more than necessary to prevent that a deputy or admin who performs a cURL with wrong parameters does not get an exception which doesn't even have negative influence on our application.