Fix template node upgrade

There are thousands Template::Node::_upgrade() call to show each admin page but 1/3 of Template::Node values are just undef.  Here is a patch to avoid unnecessary _upgrade() call by checking before _upgrade() call.

Thanks!