handle invalid page arguments, e.g. when redirecting (page=login); fixes #700