Fix lossless WebP image file handling

Based on the discussion at https://groups.google.com/a/webmproject.org/forum/?fromgroups=#!searchin/webp-discuss/opencv/webp-discuss/_ocGETvcLVw/bhtZYjZTmXQJ the lossless WebP image format is not handled correctly. Fixing that now as per the suggestion mentioned there.