LPS-40207 Modify logic in LayoutStagingImpl.isBranchingLayoutSet() to shortcut heavy operations.