[DO NOT MERGE] Fix NPE caused by misplaced parenthesis.

In onStateChange, this branch of logic should be not be followed if mPrimary
is null.

Bug: 27045730

Change-Id: Ia948313d4886475dd5966b209c19696cb594ed59
(cherry picked from commit 89fa1dbb7e73766647a9de92da1b8164aa71471e)
(cherry picked from commit 6e01a29e201837a6084e156aee7edcd21e46c8bc)
1 file changed