AbTest: add a check for flags field (BugId:96148)

JS code is failing because AbTest assumes that ```flags``` field is always set, which apparently isn't true.

```
> JSON.stringify(window.Wikia.AbTest.getExperiments( /* includeAll */ true )) 
 "[{"id":2,"name":"PERFORMANCE_V_PREFOOTERS"}]"
```