Fiix for case when dynatree shows wrong content when user double
clicks on a collection.

References #330.