Fix asset extension detection

To prevent doted filename to return a 404 error, extension comparison is now done with mime type extension and not "blank?"