Fixed error with reading empty json files