Fix IllegalArgumentException when comparing locations across worlds