Fix maxZIndex for large z-index values

Some pages may try to set z-index values that are very large. Above some
threshold we observe that some browsers may report the value in scientific
notation. In this case, parseInt() fails, returning a value between 0 and 9.
Use parseFloat() instead.