cleanup getPush code a bit

So that function that's called one is last in it's outer function

Change-Id: I8a5e5f5080ea3eb46be8ff2a8ec16110afb13ac5
Reviewed-on: http://review.couchbase.org/35886
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Artem Stemkovski <artem@couchbase.com>