Fix reset pose mode.
Fix reset pose mode.

In the case where the armature is already in pose mode, we want to be in
go to rest mode before reseting.

See Issue #13697

vovythevov/Bender,finetjul/bender,ricortiz/Bender,ricortiz/Bender,ricortiz/BenderCraniosynostosis,kitleo/bender,finetjul/bender,finetjul/bender,vovythevov/Bender,finetjul/bender,vovythevov/Bender,ricortiz/Bender,ricortiz/Bender,ricortiz/BenderCraniosynostosis,ricortiz/BenderCraniosynostosis,kitleo/bender,ricortiz/BenderCraniosynostosis,vovythevov/Bender,kitleo/bender