self closing tag now outputs empty object rather than null