Effects of damping on the stability of the compressed Nicolai beam