[stacktraces] Bug 450043: Additional checks and handling of empty
stacktraces

Change-Id: If9b4140dc6cd6761e8596dd28708329a54718014
Signed-off-by: Daniel Haftstein <haftsteind@gmail.com>