Avoid issues with _matrix being undefined when items are created and added in a certain sequence.

Closes #279.