Hack from https://github.com/jzaefferer/jquery-validation/issues/146