Init request if null in getRequest.

Init request if not set in getRequest.
This is for #161