check for empty geometry

.getCentroid() will return an empty point if the original geometry was empty - causes the whole map reduce job to die.