Keen client no longer crashes when uploading empty files

I've added a simple check to make sure Keen client does not crash when it encounters empty file