Viscoelastic flow in a two-dimensional collapsible channel