TMDM-7629: fix bug related to last portlet unavailbe(matching), where needs to save portal configs into db