fix bug causing --from-pr to crash hard unless --robot is used