dbcheck: fix the err_empty_attribute() check