prevent saving of partially loaded notebooks

closes #5363
address PR feedback
Merge pull request #5396 from ivanov/fix-5363

prevent saving of partially loaded notebooks