[[ Bug 14052 ]] Ensure no nil string is returned for the type in queryRe...

...gistry