Save $this.topicNavigation even if empty to avoid error

jQuery .is() just returns false for everything if it's an empty set,
which is correct here.

Change-Id: I873435cd6d34e825b24c3b2edfb41a9f1dd33997