Under certain circustances the number of DOM children is not the same than the number of options, this causes an exception by access to undefined during iteration.