Fix rendering issues

* fix bug when variable is null object
* fix test when rendered variable is false
Merge pull request #89 from Swaven/master

Fix rendering issues