FORGE-687 Modify PromptType.JAVA_PACKAGE regex to allow empty strings.

Added an all or nothing test to the regex.