Can I suggest 
```
if (!pending_screen_state_reply_)
  return;

picojson::value::object o;
...
```