Fix: Can't delete existing jobs with version_id==NULL

Fixes RM#5347