default zIndex to be a valid value to fix exception in ie8
Check for null before setting the zindex, and instead keep it null initially. This way calls to setZIndex() wont fail if passed null.
Merge pull request #3043 from kerryarts/ie8-zindex-fix

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