fix crash in identify menu when closing a project with map layer actions