fixed error message when web service returns an empty or incorect object