Fix a empty params error when access homapge.