Fix #1 

If no chunks just return an empty object to avoid searching the chunks[2] (typeerror undefined)