Fix potential crash when switching nodes.

hasFootstep was never initialized, which may have triggered playback of empty audio objects.