Stability of a Beam on an Elastic Foundation Subjected to a Nonconservative Load