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

Change-Id: I8d1d568cde1e94a9b4f679dbf8c1b256076533cb