Added the FILTER_NULL_ON_FAILURE flag behaviour

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| Tests pass?   | yes
| License       | MIT