Added check for validity of receivefrom result (ohops).