This behavior is actually expected. The advised solution is to use the Live Data xwiki macro instead. Another option is to wrap the call the $services.liveData.render in an html macro.