Little fix in InputFilter/Factory

Hi there!

We can now add error_message option to Input without fallback which caused problems with validation final result.
[#4838] Added test

- Added test to ensure that change works
Merge branch 'hotfix/4838'

Close #4838