Fixed bug in FormManager leading to NPE when a program doesn't have any visit forms