I agree. I had to add this because the Travis CI example integration tests are canvas only which means that I got an assertion error (effectively "no layer renderer available for this type of layer") without this.