[sr-dev] git:4.4:551a0d0f: core: add safety check to rval_get_tmp_str()