fix invoice generator and its data mapping in infinity, prevent possible NPE in messageSender