Avoid NullPointerException

A crash will occur when a user share more
than one file and the mime type of any of
the files to share is null.

Avoid crash by not adding the mime type to
the mime type list if the value is null.

Change-Id: Ia06f3389da6ce34e11ffcf349a10fdbe64cfc9bd