Safety checks around checking for JAI getDefault