Patches for fixed 5 problems with check_ifstatus [sf#1777775] [#831]