Implement EZP-19120: 5.x expose isEmptyValue() in API for template needs

This will need to be merged after #391 has been merged as it adds acceptValue().