Fixes #6175 - Update content host info after adding/removing sub

Use `function (host)`, otherwise you will get jshint error.