correctly handle platform error in rdj assembly

```c
if (reads == NULL)
  had_err = 1
if (!had_err) {
   /* following code */
}
return had_err;
```

would be the right way to handle this, or do you have a reason why this is not possible in this case?