Fixed crash in CastService when sending commands when app is not loaded, fixes #51