[InputFilter][Hotfix] Missing check for allowEmpty()

The InputFilter was allowing empty strings to pass through when allowEmpty was set to true since the refactor.

Ping @weierophinney