Use proper IllegalArgumentException instead of NullPointerException in Location.

This exception was never uniquely checked anyhow (and it occurence IMHO always indicates a bug), so no further code changes are necessary.