defaults locals to an empty hash, some rendering engines don't like nils for locals.