Moved exception handling to base repository
Fixed bug where app spaces were no shown when a space does not have any users