Fixed case where project is removed.

Tested this by editing session storage directly.