On the peculiarities of the loss of stability of a non-linear elastic rectangular bar