HR-196: if planId is null, try to get it from the API (new call added)

Signed-off-by: Robert Miller <bob@bobtrix.com>