Fixed edge case for SD existing without attributs.

When an sd existed, without the adminusers/teachers/totalusers
attributes, there were errors. Those have been fixed.

refs #16047
Merge branch 'bug/16047' into develop