KRACOEUS-7932 fixing ProposalLogStatusValuesFinder

this reformatting of the logic prevents class cast exceptions such as the root error of the Jira.