fixed bookings save

check if previous bookings exist and prevent from crashing if not