Filter out "strange" database objects in the list of referenced objects too.