Added a check for the presence of declaration.value in the compass extension.