[pvr] fix: schedule recording with ending after midnight (Ticket #14165)

This fix trac ticket http://trac.xbmc.org/ticket/14165