Fix Clang static analysis errors concerning null pointers. (#460)
Also fix a wrong parameter checking.
Fix Clang static analysis errors concerning unused variables except for FLAC::File. (#459)