Added error handling for edge cases with nonexistent departments
Added error handling for edge cases with nonexistent departments

theworldbright/mainsite,theworldbright/mainsite,aspc/mainsite,theworldbright/mainsite,theworldbright/mainsite,aspc/mainsite,aspc/mainsite,aspc/mainsite