build: Check current build epoch only if it's not None

Always check whether it is None or not.