Prevent read errors for non-js files

Had issues when file list contains css files which can be the case when using the main-bower-files gulp plugin. Angular material has a css file which resulted in a read error, this fixed it.