Call getBounds only if feature geometry not null.

function getBounds() was called on an object potentially null.