Fixes misleading error message in isAfterYear and isBeforeYear assertions (fixes #223)