janus_finalize_template sanity check