Dearsley, Henry Hanson, Midshipman