opus_demo: fixes potential division by zero on files with no active frame