add error reporting to [insert_tag] if it has no variable= field

The lack of reporting here is somewhat annoying so i patched it.