added Exception to the execute method of WGApi when result empty or contains errors