concrete5/concrete5 — pull request #1628 by Mnkras (2014-02-22 02:50:12+00:00)
Title: Fix mysql error when attempting to remove blocktype from deleted page

Thanks to @korvinszanto for helping with this, if a page somehow becomes deleted and the blocks still exist, when you attempt to remove the block, Block::getByID() tries to find the page and blows up with pretty mysql errors.