Avoid unnecessary work.

If the pending queue is empty, then we don't need to do all the work of
determining job assignments.

Bug: 141645789
Test: Android builds
Change-Id: I3dfad0ea128580ba7e924b332464b807eb2c403f
1 file changed