fix crash if core is not there

Change-Id: I2eaf6015c6bbc601338f94db0761ddd0016a8211
Reviewed-by: Kai Koehne <kai.koehne@digia.com>