Use builderid, not buildername, to look up buildrequests

This reproduces and fixes bug 2940.