fixed check_chain in modules/iptables.py

Fixed a small bug in modules/iptables.py in check_chain function.