recurring payments were not triggering post-import hooks

An undefined valued was passed to the hook rather than the contact id.

Change-Id: I22cf6bc90d8779b659ab32a53b27bd55f0280e19
Also: fixed more warnings