Improve lean/mongoose document null value handling. Now outputs both nicely.
Remove any empty value in transformation.