[Drivers,Platform] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
ERR_FAIL_COND
ERR_FAIL_NULL