Delete and re-insert the report before we change the id.
Added in the same serverIdObtained id here and the delete and reinsert
logic when the id is about to be changed to the report photo. This
should fix the 404 issue with the image linking.
Updated the tests to detect for null returned from getAccount and
getCustomer.