main: Make notify() details optional again
The parameter used to be optional until commit d54219c0, but
after GObjectifaction undefined
is no longer interchangeable
with null
here.
Restore the old behavior, as it's used by extensions (including one of our own templates).
Closes: #8068 (closed)