Fix for line number count.
Don't map nulls to JSON.