dtinfo: fix coverity issues related to null checks after dereference
drwxr-xr-x - cde