Issue #2343069 by typhonius: Fix javascript error for campaigns that do not support goals.