Fixed possible null reference exceptions in Page Edit mode. Added an obvious message when the condition occurs