Properly null check all button usages.

Users might have hidden them.

Change-Id: I7f52d570cf4ef0833c6bde9159475345d581a00f