ReflectionUtils: fix for #1609: RuntimeException while generating SDK doc