Add check for DNAST mode.

Bug #577.
Signed-off-by: Nikolay Nizov <nizovn@gmail.com>