Check content exists before attempting to read contentConstructor

in range-controller
Merge pull request #1216 from Stuk/contentcontentconstructor

Check content exists before attempting to read contentConstructor