Fixed invalid null check in draggable control