Queen hatched a plan for Prince Andrew before death: report