Fix bugs in checking whether a snapshot target can be null. In some cases it might be acceptable