Add safety check so that we cannot create an entry that is out-of-bounds within a chunk