(PE-3914) Removed unneeded not nil? from when

This commit removes an extraneous `(not (nil? ...)` wrapper from a
`when` form.