Fixed a NPE with the intent being started in the wrong context.