fix ICS invoice spooling when service records are missing, #17620