Fixed a bug in the min and max timestamp in media/search

If either of the min timestamp or max timestamp were later than the current date, they would be assigned themselves / 1000, instead of Date.now() / 1000.

This is now resolved.