LPS-46486 Query reference elements with the proper class

Hey Brian,

This is very simple change, we have to query the reference elements with the DLFileEntry.class. We have to do this everywhere in staging, so I'm going to scan everything now to check for this, but I'll open up different tickets for the backport team to make their life easier.

Thanks,

Máté