Issue a developer warning if density is present but invalid.