Prevented error from being thrown from initDrag in drag.js