prevent loading another space's custom domain #3251

#3251 

Fixes bug