Better detection of empty input.
Fixed #5, handling of empty (whitespaces) or corrupted input.
Merge pull request #6 from apiaryio/hj/fixes

Handling of empty (whitespaces) or corrupted input