BUGFIX: Don't crash when the intent is null.