No composeFrame if prepareFrame returns false
No composeFrame if layer and view don't intersect

ol.renderer.canvas.TileLayer#prepareFrame immediately returns false if the layer extent and the view extent do not intersect.
Merge pull request #2602 from elemoine/layer-extent

Fix Uncaught RangeError in canvas tile renderer