Check if Membership::GetPrefixChar() returns 0 before appending it to a string

Spotted by @barosl