Remove null elements from a Java list