htsp server: fixed wrong condition (profile_chain_work)