added null checking in get... methods of LayersMenuFragment