Backport fix for reloading graphs tree in ajax callback to 0.9.x

refs #603 #870