MT#7943 prevent changing terminated customer

(cherry picked from commit 110db395dced3a06d23892fc50e71487be623cb8)