Committed fix from https://github.com/tplaner/When/issues/5
Merge pull request #7 from justinethier/master

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