Bug 67167: Wrong return value from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE

Fixes bug 67167 by adding a check for FILTER_NULL_ON_FAILURE.