Fix for unable to commit changes after library collapse.

Issue identified:
When library is collapsed, focus could not be return to the search textbox inside, which current code is performing, hence focus remains within the node causing commit to not happen.

Fix:
-Added codes to shift the focus out of current node when workspace area is clicked.

Fix for MAGN-588