This is a workaround required to get BAT reliably working again after recent rB133dde41bb5b, which fixed many indirectly linked IDs being tagged as directly linked, and therefore having their reference written in .blend file. It seems that BAT is still missing proper handling of some ID pointers. Required for the end of the Heist production here at Blender Studio.