add basic log4j config and prevent npe if no polygon found