Fix bug DNN-3133: update sp to let profile definition limit to the related portal, change the unique index to lower case, search result will have null reference exception f there is no search in query string.