[TIMOB-17545] Fixed timodule logic to find latest *valid* module instead of latest module.