Ensure model is passed with <template if>

R=arv
BUG=

Review URL: https://codereview.appspot.com/10255050