Added check to see if the file is empty before trying to read it. Change-Id: I3e1266e8c0bb7e79d90db0485e4beacf3ad77f95