make bootstrap work if the node is a template node

BUG=None

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