Update test-lib.sh
Update test-lib.sh

test emptiness after entering the loop

Co-authored-by: Petr Kubat <cb67dabf00e4e6039c874092464951ba3080cddb@redhat.com>
sclorg/container-common-scripts,sclorg/container-common-scripts