Gallery2: Avoid crash during trimming video

Google only provides the lib of mp4 parser to support
the video-trim feature. But some files would fail to
trim and cause the gallery crash

Catch the IllegalStateException to avoid the crash of gallery

Change-Id: I567fefe000990eaf8074e0892f6276b952e4678f