Issues #1643552, #1286490 by jdwfly: template_events array initialized and input formatter check removed.