trivial: Ensure we return an error and not crash if there are no profiles for a device or file