Use references in GATT client/server API (1/3)

This allows to get rid of some unnecessary null checks, and guarantee
proper values are passed.

Test: compilation test
Change-Id: Id5508477809a5c0b038eed71403a8bf93bd03203
2 files changed