Added null check for cover photo