Catch some errors.

In some instances (not sure exactly why) some draggables and droppables try to trigger events they shouldn't. Some small additions to checks catch a couple of these.