Fixes bug with wrong mains array

* Now Savanna dashboard doesn't send mains array with empty one element in it

Change-Id: I8b70bae487702a37414f4e75c97f0a0e6cdc5777
Fixes: bug#1237434
Merge "Fixes bug with wrong mains array"