Zero index treated as null in custom data object