Fix OSLQuery crash reading OSO with local variables and no parameters.