Extent cannot be undefined here but it can be null

so we now use !goog.isNull(extent) instead of goog.isDef(extent)
Merge pull request #307 from bbinet/null-extent

Check for not null extent