#22572 - template.get_fields() no longer stops when optional keys cause
value conversion to fail and there are still template variations to try