Check that mime_type is defined before comparing it to text/plain. Fixes #3291.
Check that mime_type is defined before comparing it to text/plain. Fixes #3291.
pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac