Fix crash from nil content