Don't pass null to TableXyzElement.as when changing stylename (#13334)

Change-Id: Icfa7b6e4affe51111c8f5b4495d97bb80b983087