deal with missing ids when returning from sphinx