Update BaseInputFilter.php

If value is required, it must be set in $this->data[].
If the value is set and it should not be empty, it must be invalid, even if not required.