more robust check for ClimateModel === undefined

needed for FF