Added the getLastValid function for findblock cron
Updated findblock cron to use block->getLastValid
[FIX] Wallet Balance Newmint Calc Fix
[FIX] closing if
[FIX] changed template and calc
[FIX] delete whitespaces in api keys
Merge pull request #1890 from mxaddict/master

Pull request for findblock cron fix, related to orphaned blocks.
Merge pull request #1896 from iAmShorty/uptimerobot-trim-whitespaces

[FIX] delete whitespaces in uptimerobot api keys
Merge pull request #1884 from iAmShorty/wallet-balance-newmint-fix

[FIX] Wallet Balance Newmint Calc Fix
[FIX] coin_address is string, not int

throws a mysql error when updating coin address in user settings