Ensure that the id param is set.