Make sure we check that result is not empty before we try to access any of it's values otherwise we'll fail with an index error
Make sure we check that result is not empty before we try to access any of it's values otherwise we'll fail with an index error

git-svn-id: 81e381228600e5752b80483efd2b45b26c451ea2@1857 e27351fd-9f3e-4f54-a53b-843176b1656c

trevor/calendarserver,trevor/calendarserver,trevor/calendarserver