Fixed ugly null pointer when starting up with broken workspace root

Used to happen when starting up with a non-existing workspace root which cannot be created.