fixes #238: don't crash on CGRectZero/invalid frame with MapBox sources