[sr-dev] git:4.2:bae15394: imc: better condition to catch no result of database query