[#284] BUGFIX: possible bugfix for flexAnimate: sliding from first to last slide

This seems to happen when slider.direction is undefined.