Bug 1007774 - Part 2: fix undefined/null error found with hamachi.

I could do
````
var perfGoal;
if (mozPerfGoal) {
  perfGoal = mozPerfGoal[perfGoalKey];
}
if (mozPerfGoal && !perfGoal) {
````

But I don't find that better.