Add null checks in IntentAssert

Make sure that the actual is not null when checking for flags, data and component.