Fixed hooks to contact app, broken by ownCloud 6 upgrade