fix(processMessage): do not call callback if no messages