Fix handling of "Fit" zoom values in setHash (issue 5581)

Tentative patch to fix #5581.
nit: don't use `else` here -- not the same case check as above `if`