Optionally accept END tags as valid