Fixed missing check when building without inlining