Fix condition, avoid deprecation warning.

Find returns -1 if string not found which results in True.
Merge pull request #13145 from zeezooz/iptables_check

Fix condition, avoid deprecation warning.