Handle invalid params a little better.