JavaCL: fix regression on CLPlatform.getExtensions()