Improved error handling in gulp tasks so it doesn't stop every time