Fix filetype check

See: https://github.com/joomla/joomla-cms/pull/2739

I did PR this against ```master``` instead of ```staging``` because online editing gave a 404 when trying to send the proposal to ```staging```.