fix AbstractBlock::getParent

AbstractBlock::getParent returned boolean instead of BlockInterface
i see why people say assignments inside `if` statements are dangerous :-(

thanks for the fix!