update for recent firefox versions, wrap
getIntPref in try/catch.