Added argument validation in WebCLPlatform.getDevices and WebCLProgram.build