Verify apnContext is not null before it gets dereferenced

If this is still null a NPE will be thrown when it is dereferenced later on

Change-Id: I71ec478eb32425ca4242ee1eb366756648935350
Merge "Verify apnContext is not null before it gets dereferenced" into du44