The influence of a laminar separation bubble on boundary-layer stability