Neaten the MALLOC_FAIL_* definitions to reduce duplication.

 - Don't bother mallocing for size 0!
Don't MALLOC space for filters if there are none.