Remove useless length condition in errors.js
In this situation, there is no need to check for the length of otherClasses, because forEach is not going to run or give error if length equals zero, so removing this condition can keep the code simpler and faster by a non-zero milliseconds.