[XLS-551] Temporary workaround to report when references aren't released at GC
[PLAT-4647] Use ObjectUtils for safer comparison of NULLs