Pull request for Issue #5 - Exception causing trouble in PHP 5.2.13

Since I am also using PHP 5.2.13 in production, I would like to make this pull request so we can get this fix in the main project.

Thanks,

Justin