Balance loading events

We shouldn't set `loading` to `true` unless we know we'll later set it to `false`.

/cc @hampelm