Fix bug when mic crashes if there is no pattern in kickstart

Signed-off-by: David Greaves <david.greaves@jollamobile.com>