Add a default for request.args.get

And, just for the heck of it, catch TypeError anyway.  Fixes #3107.

I always take the easy ones, don't I?  At least this one passed `validate.sh`.