Avoiding degeneracy in the Westervelt equation by state constrained optimal control