BR3064459: Missing %endif doesn't always cause error