In case of any error case from Job Server to talk to API Server, we get the
error stack.
Fix: Correcting the type fix, logitils -> logutils

Check null before accessing defTokenObj in getDefProjectByAppData();

Change-Id: Ic506818dc0dbf86a8b22825a620df822489cc532