Pitfalls in compressed sensing reconstruction and how to avoid them