added check for case where we are adding the first tool to the layout.
added check for case where we are adding the first tool to the layout.

WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS,WeaveTeam/WeaveJS