Made E2Lib.setPos check for NaNs or infinite numbers on the position to avoid crashes.