Problem with python function JoinStaticMeshActors

Hello! I have a problem while switching from 4.20 to 4.22.
Before I did using a python function "JoinStaticMeshActors " for actors derived from Actor class.
In the 4.20 all was a fine, but on 4.22 it works only if actor derived from StaticMeshActor. Why it is so?
Is there some workaround?

Script example:

import unreal
import sys
joinedActorName="defJoinedActorName"
if len(sys.argv)>1:
	joinedActorName=str(sys.argv[1])
selectedActors=unreal.EditorLevelLibrary.get_selected_level_actors()	
joinOptions=unreal.EditorScriptingJoinStaticMeshActorsOptions(False,joinedActorName,False )
joinedActor=unreal.EditorLevelLibrary.join_static_mesh_actors(selectedActors,joinOptions)

Solved by extending EditorLevelLibrary.h/cpp