MDL-46588 web services: Fixed system context instanceid eq 0 case