Maybe some error message when object not found would help with further debugging. Or is this handled somewhere else?