check_ifstatus: perfdata bug

Just turning attached patch of github issue #721 into a push request
---
Closes #1169 and #721.