It is good practice to bounds check the timestamp of the returned transform if there is some expected valid range. You can see it through listener.getLatestCommonTime