Fixed NullPointerException when Matrix is printed at sbt console

Signed-off-by: Gustavo Salazar Torres <tavoaqp@gmail.com>