Fix for Issue #550

Fixed an issue with IE throwing an invalid argument error when trying to call insertBefore when beforeSlide is undefined.