fixes #18393
The period validator should actually throw an error in isPeriodAllowedForUI
in case an unexpected value is provided. If we use string
in the getRequestVar
method, that method would already throw an exception, that the type doesn't fit, but that message might be not that accurate.