[PLAT-3494] fix NPE when portfolio can not be found