Fixes issue in #1344, gulp watch causes error when adjusting theme.config