Patch to prevent core dump by Ryan Thompson <ryan@sasknow.com>
State Changed From-To: open->closed Committed, thanks!