iflist: check validity of attribute before extracting payload

Hopefully will fix bnc#863371
Merge pull request #173 from kmroz/strlen-segfault2

iflist: check validity of attribute before extracting payload