Fixes callable throwing RuntimeException

The example at http://book.cakephp.org/3.0/en/core-libraries/logging.html#using-monolog threw a runtimeException. This PR fixes that. Much obliged Mr. @lorenzo for troubleshooting this.