Pull request for findblock cron fix, related to orphaned blocks.

Here is the new Pull Request against development.

BTW, i'm not sure how you are implementing Unit Tests, so i guess i can leave that to you? or do you have documentation for me to follow to create a test for this, in case a regression comes up in the future?