ilastik/shell/projectManager.py: When checking whether to serialize verify that shouldSerialize is True also. Fixes ilastik#1052.