Restfull: avoid NPE qhen requesting sessionID