Fix error if tree hasn't been indexed yet. Also show components in the resource navlist