Fix spurious warning when script_req_route is not set in b2b_entities

Fixes issue #162.

Was caused by a bad check against req_routeid.