Import small fix for rendering bools in templates

Change-Id: I16a36635a9b42298c167e9abea515359119ea7bd
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3809
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins
(cherry picked from commit 607e78e37469d3d63e46fe1af8e0f5aab1fbb2df)
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3836
Tested-by: Henry Robinson <henry@cloudera.com>