Fix wrong errors counting

 This change will fix wrong errors counting for the current version of Dojo (1.10)