Anna Petrášová3f5ddd1158r(3).info: fix https://trac.osgeo.org/grass/ticket/2357 resulting in r3.info crash and r.info reporting wrong categories (merged from trunk: https://trac.osgeo.org/grass/changeset/61172, https://trac.osgeo.org/grass/changeset/61189)