fixed pinterest canHandlePayload function