Fix nil value tiles exception, second attempt.