Handled null case when loading shifts