core: Check if controllerAliases is set before using it

Signed-off-by: Robin Hallabro <robin.hallabro@sveabyran.se>