Bug with null returned by deal.getId has been fixed.