Fix for edit pencil not working if user not logged in.

Change-Id: I8dae0e3212905e21134787ef6fad094cf0d8c764