[FIX] slug: fallback to positive ID when slug appears to contain a missing negative ID

Cherry-pick from dcac4cc0dfd4412e1139399fb17ec7ba6118aad4