frontend: Fix panic
Created by: ryanslade
We were not checking whether r.opt could be nil, only opt2. It looks like we were using r.opt directly in error as all other checks in the code are using opt2.
Created by: ryanslade
We were not checking whether r.opt could be nil, only opt2. It looks like we were using r.opt directly in error as all other checks in the code are using opt2.