[BUGFIX beta] Only register this observer in debug builds