Unable to recreate this bug. I'm adding a last ditch attempt to catch nils and return safely since I'm not sure what to do at this point. Closes #315.