Optimized getEmcValue and hasEmcValue

Speeds up EMC calculation at startup by about 25%, while keeping same result. Small changes can make a pretty big difference :D