add validate of some internal parameters to prevent OutOfMemory exception on not AXML files