LPS-33381 Fix refererPlid override after page delete
LPS-33381 Source formatting
LPS-33381 make logic consistent with SitesUtil - deleteLayout