Issue #2825198 by jibran, larowlan: Only allow content entities with integer id as reference entities