Fix 1356449: don't crash when creating a PasteCanvas by not accessing a NULL pointer