Fix branchOrder to return an error if it's given an invalid branch number