Fix NPE when remote project has no snapshot