mw.hook: Use hasOwnProperty

This allows hooks with name of predefined methods.

Change-Id: I71823a61a43787c14b410bc732f934fe7545fcee
Merge "mw.hook: Use hasOwnProperty"