Throw error rather than asserting and returning undefined, see https://github.com/phetsims/chipper/issues/1033
Throw error rather than asserting and returning undefined, see https://github.com/phetsims/chipper/issues/1033

phetsims/tandem,phetsims/tandem,phetsims/tandem