Call setView only if center is valid

Since there are some minor issues with timing when calling setView too frequently one way to work with that is setting the center.let/lng to undefined first (and skip calling setView) and then call only when set to proper values.