api.Context.NotFound(...) should tolerate nil (#11288)
api.Context.NotFound(...) should tolerate nil (#11288)

There is an unfortunate signature change with the api.Context
NotFound function; whereas the normal modules/context/Context
NotFound function requires an error or nil, the api.Context
variant will panic with an NPE if a nil is provided.

This PR will allow api.Context.NotFound to tolerate a being
passed a nil.

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>

Co-authored-by: Lauris BH <f3041c4c693c07149804ea655e75ee8bb856bd26@nix.lv>
vdbt/gitea,cez81/gitea,go-gitea/gitea,vCaesar/gitea,sapk-fork/gitea,sapk-fork/gitea,go-gitea/gitea,vdbt/gitea,lafriks/gitea,sapk-fork/gitea,vCaesar/gitea,go-gitea/gitea,cez81/gitea,lafriks/gitea,sapk-fork/gitea,cez81/gitea,lafriks/gitea