Only register `View#elementId` observer in debug builds

A little perf boost for production builds...

@stefanpenner