Fix issue where layer doesn't have getBounds as a function property