active first li element no working in firefox

In firefox the slide is not showing when first li is marked with class="active".
If none of the li elements is marked or other than the first, everything works as expected.
Do removeClass('active') and self._goto($init_target.index()) only if idx != $init_target.index()
Merge pull request #5289 from me-kell/master

active first li element no working in firefox