Fix no records import logging exception