Fixed messages navbar template so it doesn't blow up when the user has no partyId