There is an undocumented branch filter available on the ChangeLocator, e.g. "branch:(default:true)".
For the available filters see the BranchLocator: https://www.jetbrains.com/help/teamcity/rest/branchlocator.html
(I figured this out by looking at the REST API calls of the web interface.)