Move isUndefined check to CSSConstants in java code

Minor Java code cleanup. See title