Fixed undefined usage.

use_inline_resources might be undefined. Therefore it should only be used if
defined.