fixed handling of nulls when using formatters (see #1)