Fix bug in zIndex getter, that could cause an error.
Fix bug in zIndex getter, that could cause an error.

If the zIndex property was accessed before the object had been added
to another object/core instance, it would generate an error.

1up-lab/ocanvas,koggdal/ocanvas