fix(profile): fix bug where empty profile displayed on username click

Due to #2396, Shared was undefined in one controller. There may be other
cases we should look out for.

Fixes #2465
Merge remote-tracking branch 'upstream/master' into develop