Patches for Errors in check_ifstatus [sf#2346176] [#943]