Redirect to the frontpage rather than error on invalid params

Fixes #1448.