Fetching records with the getRecords() function does not work for subforms whose parent form has no key fields set.
From AI-3819 Resolved in commit: 5fb12f9