inspector: do not dereference null pointer
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
inspector - just a minor bugfix
Description of change
This issue was caught by Coverity. Apparently, nullptr in std::string ctor is undefined behaviour.