Minimize potential for fatal errors when a malformed date is passed to month view in the URL (updates #31714)