Fix bug DNN-5325: only add portal alias when host portal id is defined.