Couple of cleanups in RelatedObjectLookups.js

Thanks George Karpenkov.