Doc-opened hook triggers when loading .ifc link

I have encountered an issue where the “doc-opened” hook gets triggered when loading a .ifc link. This leads to errors, because it seems to try to run the code on the .ifc file, which obviously won’t work. This doesn’t happen when loading .rvt links, so it seems to be related to the .ifc format. Has anyone else encountered this?