Avoid std::string crash when NULL is returned