Fix 'kube apply' panic on nil items

Bug 1146024 - https://bugzilla.redhat.com/show_bug.cgi?id=1146024
is the len(item) necessary?