Now showing warnings instead of crashing when an element cannot be found in @types.