Fix failing test as monolog does not allow a streamhandler with a null as its resource