rest: Fix primary_school_id for nil values

For users without a schools?