Guard against empty search pattern in 'mc/mark-all-in-region', otherwise it will enter an infinite loop