LPS-33949 selectEntity function in util.js registers more than one same callback

Hi Nate, since Iliyan is at vacations I'm sending this directly to you. Issue affects our new pop-up dialogs in a way that same callback is assigned to dialog as much times as user opens dialog so we have unnecessary multiple callback executions.

Thank you very much!

@ipeychev