Crash when deleting last non persistent item in navigator

There was a crash when we were deleting the last non persitent item in the patient navigator. 
This should solve the problem.

Guillaume