On a property of fundamental groups of graphs of finite groups