Getting rid of a trailing error message on non-error pages