Prevent updating the current transformation matrix when the stateStack is empty
Merge pull request #3927 from Snuffleupagus/issue-3925

Prevent updating the current transformation matrix when the stateStack is empty