Fix calculation of availableSpace for applets
Review Request #126731 - Created Jan. 13, 2016 and submitted
Fix calculation when positions[row] is undefined. Currently it would incorrectly return the whole requested area being available without any further checks.
No longer possible to place applets on top of each others.