Not publish nan bbox

Check rotation axis before aligning bounding box to the nearest plane.