[PATCH] Correctly handle failure in getting build or install dates