Default zIndex to be a valid value to fix exception in ie8

Fixes #3037