fix Issue 11778 - format for null does not verify fmt flags.
Merge pull request #2069 from 9rnsr/fix11778

Issue 11778 - format for null does not verify fmt flags.