Make sure _beforeID element exists before inserting indicator before it