If I'm reading it right, it's a pretty simple change, all you need is:
-A INPUT -d 127.0.0.0/255.0.0.0 ! -i lo -j REJECT --reject-with icmp-port-unreachable
(Moving the ! before -i rather than after it)