Handle parsing errors when evaling `Class.from_file`

Refs: https://github.com/berkshelf/berkshelf/issues/996