fixing bug #5928 :
- updating space homepage type if it was deleted component
- using default space homepage if component is not available to user
fixing bug #5929