Fix safe call on a static method in JVM back-end

 #KT-5796 Fixed