Fix NULL error when deleting SD for an already deleted page