Minor fix to make di work correctly in dart2js