Don't assume repos exists in the object (even if it should)

Fix for Issue #535 - cobbler sync fails on "Exception value: 'repos'"
Merge pull request #536 from jimi1283/issue_535

Don't assume repos exists in the object (even if it should)