
Added a debug assertion that will catch the problem in debug builds and some release mode code that prevents crashes if this ever happens.
Added a debug assertion that will catch the problem in debug builds and some release mode code that prevents crashes if this ever happens.