[TECHNICAL SUPPORT] LPS-33381 Fix refererPlid override after page delete

Hi Zsigmond,

This is the issue I talked about with @juliocamarero and you were CCed. I keep the original logic if only we delete the selected layout as for site delete it works correctly.

Regards,
Vilmos