Added nullcheck to Java2DTileRenderer