LPS-46013 refactor wrong logic in asset publisher