fix crash in drop code when the drop target is the #document -- this MAY happen when this library is, for example, combined with HTML5/jQuery drag/drop functionality (in other words: we suspect this is one of the bits which go wrong when mixing jQuery drag/drop and this library, an issue which is pending for a long time in the slickgrid library for instance)