Fix project tree animation 'bug'

Some browsers, such as Chrome, have a 'wobbling'
effect when collapsing an empty folder. Decreasing
the duration of the animation to zero for empty
folders makes things look better.