This is caused by climbing up the wall until you reach about the height of the moving platform with the spring and then waiting for the platform to go underneath you. The game will think that you are standing on the platform and climbing on the wall at the same time, making you stand in the air.