Fix NPE when installed on a client.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>