Check that the context sent to settings activity isn't null

if it is we shouldn't load images since we're navigating away anyways. Also just use the context passed to init UIL