This statement is true whenever \supp g (You can prove this with Heine Borel) or the range of {X_n} is compact.
Since now you have the compactness relaxed, you can pursue that direction.
Also, the foundation of this question is more towards Intro to Meas. Theory, you may consider re-post in...