Fixed issue with parsing empty files