fixes SECOAUTH-409

Prevent IllegalArgument exceptions when invalid requests (including invalid query strings) are encountered.
An implication is that invalid requests cannot be redirected for oauth purposes.