Null Reference Exception when user isn't logged in

Checked for _membershipService.GetCurrentMember() user to be null before
trying to get the id.