Issue #2578119 by Grayle: Extra condition in dnd library javascript to make sure the contexts of the atom exists before checking in it.