Added a check for documentPickerMode

Signed-off-by: Don Southard <don@reactivcode.com>