Check for changes before stashing