Pdi 10140 - "retrieve the...first mails" option doesn't work (for POP3 protocol)

What was done:
1) fixed issue
2) added unit test

please also see original pull request to get the details about testing
https://github.com/pentaho/pentaho-kettle/pull/203