Check for not null extent

use ``!goog.isNull(extent)`` instead of ``goog.isDef(extent)``