Fixed NPE in rendering dragged items.