[FIX] Do not use Block Height to fetch prev block

This should fix issues with orhpan blocks followed by real ones with the
same height.

Fixes #715, attempt four!
[FIX] Removed debug exit
Merge pull request #835 from TheSerapher/issue-715-block-id-fix

Issue 715 block id fix