Energy stability of steady shear flows of a viscoelastic fluid