Only call GetFullyQualifiedName() if wrapper does not exist (ROOT-6909).

(cherry picked from commit 2acadc9d4ac7477df32030a2fcb3f7b5261ac7c7)