checking for invalid zoom value of zero