[sr-dev] git:5.0:9e3096e1: core: add safety check to rval_get_tmp_str()