o.c.opibuilder: Check before casting to IOPIRuntime for open-in-view