Avoiding NPE when there is no value for an HTTP parameter