Fix invalid timer handle error when ambient sounds are disabled.