The early input validation makes sense to avoid crashes later. Otherwise we would need to have such conditions everywhere.
I apologize for the issues.