Add some null checks in IntentAssert

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