Fixes 2 issues I found by chance while browsing trunk demo

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1444356 13f79535-47bb-0310-9956-ffa450edef68