Waits for stream to become available before recording (to prevent errors)