@TimBr Did you migrate this from an older server?
The getPrimaryGroup/getStorageGroup’s are the indicator of the problem here.
Basically, you would likely see the same type of problem if you were to goto snapins:
Effectively the issue is the Image (in this instance) is associated to a StorageGroup that simply doesn’t exist or that storage group has no storage nodes associated to it.