Fixed error that prevented a controller from being defined for a state when a views property was defined instead of a single template