Fixed a but related to nodejs and empty files! It looks to break the service when the buffer has 0 length