Reduce other projects sidebar initialization

Don't attempt to initialize the sidebar if the current page
is not linked with any item.

Change-Id: I154a67310a8d7b4beb68b1930d9bbc290eb76c66
Merge "Reduce other projects sidebar initialization"