Studio::EventInstance::getPlaybackState() crashes on invalid instance

Despite that the reference manual states

If the instance is invalid, then the state will be set to [FMOD_STUDIO_PLAYBACK_STOPPED]

Studio API Reference

It crashes for me. To illustrate I slightly modified the shipped example (…\api\studio\examples\simple_event.cpp). If you run the example, start (button 2), stop (button 3) and restart (button 2), it will crash on getPlaybackState()

FMOD error 30 - An invalid object handle was used.

example code:

if (Common_BtnPress(BTN_ACTION2))
{
    /// start added code
    FMOD_STUDIO_PLAYBACK_STATE state{};
    ERRCHECK(loopingAmbienceInstance->getPlaybackState(&state));
    if (state == FMOD_STUDIO_PLAYBACK_PLAYING) 
    {
        continue;
    }
    /// end added code

    ERRCHECK( loopingAmbienceInstance->start() );

    /// start added code
    ERRCHECK( loopingAmbienceInstance->release() );
    /// end added code
}

Ok, nevermind. getPlaybackState() works as advertised, but the ERRCHECK-macro handles the return value and if not-ok, kills the process.