fix crash bug by RuntimeException. https://github.com/azki/ByakuGallery/issues/1