Prevent NPE in drag and drop handler under unexpected flows.