The "masterPos" field in refreshLinks can be false so check for that

Change-Id: I445e10da122e5f24e589f1eb078a31605b9f2e13
(cherry picked from commit 653f6c80d71b8d69ffe1838cd235096a82bbda42)