KRACOEUS-7932 fixing ProposalLogStatusValuesFinder

this reformatting of the logic prevents class cast exceptions such as the root error of the Jira.
if you look at the git annotations, you'll see this was added to fix a jira. Just make sure that is still OK.I skyped the jira number earlier