Modifying template so that missing arrays don't throw errors.

--HG--
extra : source : 772655ec8fcc363b996c804f02ab37ee5c413ef4