Fix removing of orphan transactions
Fix removing of orphan transactions

https://github.com/bitcoin/bitcoin/pull/5985/files

MinuteManReserve/mmr-core,aspaas/ion,Infernoman/Transfercoin,MinuteManReserve/mmr-core,aspaas/ion,transferdev/Transfercoin,aspaas/ion,MinuteManReserve/mmr-core,aspaas/ion,transferdev/Transfercoin,transferdev/Transfercoin,Infernoman/Transfercoin,syfares/Transfercoin,transferdev/Transfercoin,Infernoman/Transfercoin,syfares/Transfercoin,Infernoman/Transfercoin,syfares/Transfercoin,aspaas/ion,transferdev/Transfercoin,syfares/Transfercoin,MinuteManReserve/mmr-core,Infernoman/Transfercoin,MinuteManReserve/mmr-core,Infernoman/Transfercoin,aspaas/ion,syfares/Transfercoin,transferdev/Transfercoin,syfares/Transfercoin