Fixed detecting RIFF files with invalid chunk sizes

Fix for the issue @wifanlith pointed out at #291.

The check may fail because ```tell() + chunkSize``` can overflow when ```chunkSize``` is close to the max.
This patch will work correctly in ```taglib2``` branch as well.