the `api.get_prediction_id` returns None also when the id does not match the resource regexp