It was introduced in fcb5c54e4 because at the time we didn't change the API to communicate the status. When onResult2() was introduced in 90d0fabb1 this hack stopped being necessary.
fcb5c54e4
90d0fabb1