Fix for issue #53

Added a function to check if ActiveRecord::RecordInvalid is defined
before using it in extract_exception_data.
Added matching specs
Fixed typo in spec
Merge pull request #54 from nessche/fix_for_issue_#53

Fix for issue #53: Dispatcher raises an exception when ActiveRecord is not defined.