fix js unit tests
fix php unit tests
CON-2061 fix PHP notices about undefined index
Merge pull request #5276 from Wikia/CON-2061

Con 2061