Fixed logging of matter_compiler (+ test)

https://trello.com/c/CcbQjI4V/2018-matter-compiler-errors-not-propagated-to-the-logs

Earlier I gived up on testing this... Not going to do the same mistake again.