rules: dependencies check fix

Treat the case where a source exists and has not been updated. In
that case there is no SourceAtVersion and the ruleset can not be
created.