Replace the deprecated table.getn() with the length operator

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Merge branch 'openSUSE/3.4.13' into openSUSE/3.4.13-virt