api/kernel_arg_info: Check for read_write image support before testing it (#1420)
api/kernel_arg_info: Check for read_write image support before testing it (#1420)

Code taken from api/test_min_image_formats.cpp
KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS