Fixes template bugs

This commit fixes some null logic bugs in the drawing templates. The
Thymeleaf documentation claims that it converts null values to false,
but it clearly lies.