Nil check for public email

fixes #11 where view threw exception attempting to access nil public email