Prevent error when theme does not support featured images / issue #639